
import mirny
from mirny.plugins.input import Input

class OneFile(Input):
	name = _('One File')
	description = _('Sample plugin to get data from one file')
	params = {	'filename': (_('Name of the input file'), str, True), }
	config = {	'filename': '/dev/null',	}
	
	def next(self):
		return False

	def get_source(self):
		return open(self.config['filename'], mode='rb')

